/*
 * query.h
 *
 *  Created on: 08/12/2008
 *      Author: desadoc
 */

#ifndef QUERY_H_
#define QUERY_H_

#include <QApplication>
#include <QString>
#include <QWidget>
#include <QVBoxLayout>
#include <QLineEdit>
#include <QCheckBox>
#include <QLabel>
#include <QGroupBox>
#include <QComboBox>
#include <QSpinBox>
#include <QScrollArea>

class query : public QGroupBox
{
	Q_OBJECT

private:

	QVBoxLayout* formLay;

	QCheckBox *button;
	QGroupBox *questao;
	QLabel *labelPergunta;
	QLineEdit *linePergunta;
	QLabel *labelVariavel;
	QLineEdit *lineVariavel;
	QLabel *labelTipo;
	QComboBox *tipoVar;
	QGroupBox *groupDominio;
	QComboBox *comboDominio1;
	QSpinBox *spinValor1;
	QComboBox *comboVar;
	QComboBox *comboDominio2;
	QSpinBox *spinValor2;

public:

	query(int num);
	~query(void);

	bool checkedForRemoval(void);
	QString getQuestion();
	void setQuestion(QString s);
	void setNum(int num);

};

#endif /* QUERY_H_ */
